#!/bin/bash

npm run build

rsync -av /opt/project/houxin/web/houxin-obu-ui/docker/{Dockerfile,houxin-nginx.conf,nginx-start.sh}  houxin:/opt/project/houxin/houxin-ui/
rsync -av /opt/project/houxin/web/houxin-obu-ui/dist   houxin:/opt/project/houxin/houxin-ui/

ssh   root@houxin  "
 cd /opt/project/houxin/houxin-ui

 chmod +x  nginx-start.sh

 ./nginx-start.sh

"

